package en.edu.zucc.pb.loginapplication.task;

import android.os.AsyncTask;

import java.util.ArrayList;
import java.util.List;

import en.edu.zucc.pb.loginapplication.AppDatabase;
import en.edu.zucc.pb.loginapplication.dao.UserDao;
import en.edu.zucc.pb.loginapplication.entity.User;

public class GetByUsernameTask extends AsyncTask<Void, Void, List<User>> {
    private AppDatabase database;
    private String username;

    public GetByUsernameTask(AppDatabase db) {
        this.database = db;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    protected List<User> doInBackground(Void... params) {
//            AuthorDao authorDao = database.authorDao();
//            BookDao bookDao = database.bookDao();


//        UserDao userDao = database.getUserDao();
//            userDao.
//        List<User> byUsername = userDao.getByUsername(username);
//            RegisterActivity.this.userDao.

//        return byUsername;
        return new ArrayList<>();
    }


}